Gateway Provider Settings
data class GatewayProviderSettings(val baseUrl: String = AI_GATEWAY_DEFAULT_BASE_URL, val apiKey: String? = null, val headers: Map<String, String> = emptyMap(), val transport: GatewayTransport = GatewayTransportNotConfigured, val metadataCacheRefreshMillis: Long = 5 * 60 * 1000L, val nowMillis: () -> Long = { Clock.System.now().toEpochMilliseconds() }, val authTokenProvider: suspend () -> GatewayAuthToken?? = null, val environment: Map<String, String> = emptyMap())
Constructors
Link copied to clipboard
constructor(baseUrl: String = AI_GATEWAY_DEFAULT_BASE_URL, apiKey: String? = null, headers: Map<String, String> = emptyMap(), transport: GatewayTransport = GatewayTransportNotConfigured, metadataCacheRefreshMillis: Long = 5 * 60 * 1000L, nowMillis: () -> Long = { Clock.System.now().toEpochMilliseconds() }, authTokenProvider: suspend () -> GatewayAuthToken?? = null, environment: Map<String, String> = emptyMap())
Properties
Link copied to clipboard
Link copied to clipboard
Host-supplied environment. When apiKey is null, AI_GATEWAY_API_KEY here is used — the KMP-idiomatic equivalent of upstream's process.env lookup (commonMain has no platform getenv; the host passes the map).
Link copied to clipboard
Link copied to clipboard